package com.dzm.service.impl;

import com.dzm.entity.Category;
import com.dzm.mapper.CategoryMapper;
import com.dzm.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 作者：Dzm
 * 时间：2024-08-10-9:37
 * 功能：
 */

@Service
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public List<Category> list() {
        List<Category> list = categoryMapper.list();
        return list;
    }
}
